/*
	Coordenate of one point in a 2D image
*/

class Point{

	protected int x;
	protected int y;

	public Point(int x, int y){
		if(x<0) this.x=0;
		else this.x=x;
		
		if(y<0) this.y=0;
		else this.y=y;
	}

	public Point(int x){
		if(x<0) this.x=0;
		else this.x=x;
	}
	
	public int getX(){return this.x;}
	public int getY(){return this.y;}

	public void setX(int x){
		if(x<0) this.x=0;
		else this.x=x;
	}

	public void setY(int y){
		if(y<0) this.y=0;
		else this.y=y;
	}

}//end class Point
